<?php

declare(strict_types=1);

namespace App\Amqp\Consumer;

use App\Service\Client\TaskService;
use Hyperf\Amqp\Annotation\Consumer;
use Hyperf\Amqp\Message\ConsumerMessage;
use Hyperf\Di\Annotation\Inject;

/**
 * @Consumer(exchange="taskNotAuditNotice", routingKey="taskNotAuditNotice", queue="taskNotAuditNoticeConsumer", name ="TaskNotAuditNoticeConsumer", nums=1)
 */
class TaskNotAuditNoticeConsumer extends ConsumerMessage
{
    /**
     * @Inject()
     * @var TaskService
     */
    protected $taskService;

    public function consume($data): string
    {
        return $this->taskService->taskNotAuditNotice($data);
    }
}
